package com.langhang.service.impl;

import com.langhang.entity.Student;
import com.langhang.mapper.StudentMapper;
import com.langhang.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class StudentServiceImpl implements StudentService {
	@Autowired
	private StudentMapper studentMapper;


	@Override
	public List<Student> findAll() {

		return studentMapper.findAll();
	}
	@Override
	public Student findstudentbysid(Integer sid) {

		return studentMapper.findstudentbysid(sid);
	}
	@Override
	public void addstudent(Integer sid,String sname,String sex,Integer age,String addr,Integer cid) {
		studentMapper.addstudent(sid,sname,sex,age,addr,cid);

	}
}
